<template>
  <!-- 右边内容头部组件 -->
  <div class="right_head">
    {{ title }}
  </div>
</template>

<script>
import { defineComponent, inject } from "vue";
export default defineComponent({
  name: "RightHead",
  setup() {
    let title = inject("title")
    return {title};
  },
});
</script>
<style scoped>
.right_head {
  width: 100%;
  color: #222;
  font-weight: 600;
  font-size: 22px;
  padding: 10px 0;
  border-bottom: 2px solid #c20c0c;
}
</style>
